import request from "@/utils/request";

// 用户列表
export async function user(params?: any) {
	return request("/shopAdmin/getUserList", {
		params,
	});
}
// 更改状态
export async function status(data: any) {
	return request("/shopAdmin/add", {
		method: "POST",
		data,
	});
}
// 根据id删除商家管理员
export async function remove(id: any) {
	return request("/shopAdmin/del", {
		method: "POST",
		data: {
			id,
		},
	});
}

export async function activityCycles(params?: any) {
	return request("/activity-cycle/get-activity-cycle-list", {
		method: "GET",
		params,
	});
}

// 小区列表
export async function areaList(params?: any) {
	return request("/area/list", {
		params,
	});
}

export async function userList(params?: any) {
	return request("/user/userList", {
		params,
	});
}

export async function getPromoter(params?: any) {
	return request("/promoter/promoter-static", {
		params,
	});
}
